package com.kkd.kkdapp.view;

import com.kkd.kkdapp.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

public class HomeHeadView extends RelativeLayout{

	private Context mContext;
	public HomeHeadView(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		init(context);
	}

	public HomeHeadView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init(context);
	}

	public HomeHeadView(Context context) {
		super(context);
		init(context);
	}

	private void init(Context context) {

		mContext = context;
		View mContentView = RelativeLayout.inflate(mContext,
				R.layout.home_head_layout, null);
		android.view.ViewGroup.LayoutParams params = new LayoutParams(
				LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
		addView(mContentView, params);
		
	}
}
